package com.wmh.baseservice.skd.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "添加自提点请求体封装")
public class AddPickupPointReqVO implements Serializable {
    @ApiModelProperty("名称")
    @NotBlank(message = "未提交自提点名称")
    private String name;

    @ApiModelProperty("位置")
    @NotBlank(message = "未提交自提点位置")
    private String location;

    @ApiModelProperty("详细地址")
    @NotBlank(message = "未提交自提点详细位置")
    private String address;

    @ApiModelProperty("经度")
    @NotNull(message = "未提交自提点经度")
    private BigDecimal latitude;

    @ApiModelProperty("纬度")
    @NotNull(message = "未提交自提点纬度")
    private BigDecimal longitude;

    @ApiModelProperty("自提点联系人")
    private String contacts;

    @ApiModelProperty("自提点电话")
    private String phoneNumber;

    @ApiModelProperty("分类id")
    private Long categoryId;

    @ApiModelProperty("图片地址")
    private String imageUrl;
}
